//公用接口

// 导入封装好的网络请求类工具
import Network from '../../network';
import request from '../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);
//查询列表
export const GetDataClassificationMenus = () => Network.post('/menu/getDataSort', {});
// 获取表头
export const GetTableHead = (menuName) => Network.post('/table/getTable', {
    tableName: menuName
});
// 获取表格数据
export const GetTableData = (menuName, pageNum, pageSize, searchModel) => Network.post('/dataBrowser/getAllData', {
    tableName: menuName,
    page: pageNum,
    size: pageSize
});

// 根据参数获取下拉列表
export const ListDataDictByCondition = (itemName) => {
    return request({
        url: `/dataDict/listDataDictByCondition/${itemName}`,
        method: 'get'
    })
}

// 获取井名下拉列表 
export const GetWellList = () => {
    return request({
        url: '/well/getWellList',
        method: "get"
    })
}

